package com.itany.controller;

import com.itany.service.UserService;

/**
 * Author：汤小洋
 * Date：2019-12-16 10:41
 * Description：<描述>
 */
// @Controller
public class UserController {

    // 使用dubbo提供的注解,注入远程的UserService服务对象
    // @Reference
    private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void findUser(){
        System.out.println(userService.findById(1));
    }

}
